<?php 
   echo "<table>";
   echo "<tr><th>ID</th><th>Nome</th><th>Telefone</th><th>E-mail</th><th>Celular</th>
<th>Documento</th></tr>";


   include ("../db/conecta.class.php");
   
   $conecta = new Conecta();
   $conecta->abrirConexao();

   while ($row = pg_fetch_row(pg_query("SELECT * FROM pessoa;"))){
      vprintf(
       '<tr>
            <td>%s</td> <td>%s</td> <td>%s</td> <td>%s</td> <td>%s</td>
        </tr>',
         $row
      );
   }
   echo "</table>";
?>